{include file="public/header" select="0" /}
<body>
<div class="header team-header">
    <i class="layui-icon layui-icon-left" onclick="goBack()"></i> 我的团队
</div>
<ul class="my-team-nav">
    <li>
        <img src="/static/index/img/icon23.png" alt="">
        <div>
            <p class="flex-center">
                <img src="/static/index/img/icon24.png" alt="">
            </p>
            <p class="price"><span>{$user.team_total}</span></p>
            <p>团队业绩</p>
        </div>
    </li>
    <li>
        <img src="/static/index/img/icon25.png" alt="">
        <div>
            <p class="flex-center">
                <img src="/static/index/img/icon26.png" alt="">
            </p>
            <p class="price"><span>{$team}</span></p>
            <p>团队人数</p>
        </div>
    </li>
</ul>
<div class="my-team-user">
    <div>
        <p>团队成员</p>
        <p></p>
    </div>
</div>
<ul class="my-team-list tpl_list"></ul>
{include file="public/footer" select="0" /}
<script id="template" type="text/html">
    {{# for(var i=0;i<d.data.length ;i++){ }}
    <li>
        <p class="flex-center">
            <img src="{{d.data[i].photo}}" onerror="this.src='/static/admin/img/head_default.png'" alt="">
        </p>
        <div class="rgt">
            <div class="flex-layout">
                <p class="name">{{d.data[i].nickname}}
                    {{# if(d.data[i].algebra == '1'){ }}
                    <span>直推</span>
                    {{# } }}
                </p>
                <p>团队业绩</p>
            </div>
            <div class="flex-layout">
                <p>{{d.data[i].mobile}}</p>
                <p class="price"><span>{{d.data[i].team_total}}</span></p>
            </div>
        </div>
    </li>
    {{# } }}
</script>
<script>
    $(function () {
        getFlow(1, "{:url('user/my_team')}");
    })
</script>
</body>
</html>